Import ('env')

env.Append(CXXFLAGS = ['--std=c++0x'])

inc = env.Dir('.')
src = env.File('src/clothes_node.cpp'), env.File('src/tables.cpp')
deps = ['combeng', 'recabs_client', 'recabs_server', 'getoptpp']
env.CreateObject('clothes-common', inc, src, deps)


inc = env.Dir('.')
src = env.Glob('src/*_client*.cpp')
deps = ['combeng', 'clothes-common', 'recabs_client', 'recabs_server', 'getoptpp']
env.CreateProgram('clothes-client', inc, src, deps)


inc = env.Dir('.')
src = env.Glob('src/*_server*.cpp')
deps = ['combeng', 'clothes-common', 'recabs_client', 'recabs_server', 'getoptpp']
env.CreateProgram('clothes-server', inc, src, deps)